﻿using Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace IDAL
{
    public interface IPatientDAL
    {
        /// <summary>
        /// 查询患者信息
        /// </summary>
        /// <returns></returns>
        List<PatientTwo> GetPatient(string str);
        /// <summary>
        /// 新增患者信息
        /// </summary>
        /// <returns></returns>
        int AddPatient(Patient model);
        /// <summary>
        /// 查询科室信息
        /// </summary>
        /// <returns></returns>
        List<Outpatient> GetOutpatient();
        /// <summary>
        /// 根据id查询患者详情（编辑详情）
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Patient GetPatientById(int pid);
        /// <summary>
        /// 修改就诊状态
        /// </summary>
        /// <param name="pid"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        int UpdatePatientById(int pid, int state);
        /// <summary>
        /// 修改患者信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int UpdatePatient(Patient model);
    }
}
